package com.itheima;

import com.example.EnableHeaderConfig;
import com.example.HeaderConfig;
import com.example.MyImportSelector;
import com.example.TokenParser;
import com.itheima.utils.AliyunOSSOperator;
import com.itheima.utils.AliyunOSSProperties;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.context.annotation.Import;

//自动配置实现方案一: @ComponentScan+@Component
//@ComponentScan(basePackages ={"com.example","com.itheima"})


//自动配置实现方案二: @Import
//@Import(TokenParser.class)//普通类
@Import(HeaderConfig.class)//配置类
//@Import(MyImportSelector.class)//自定义ImportSelector实现类  --> 导入多个配置类
@EnableHeaderConfig
@SpringBootApplication//具备组件扫描功能,但是不具备包扫描功能
public class SpringbootWebConfigApplication {

    public static void main(String[] args) {
        SpringApplication.run(SpringbootWebConfigApplication.class, args);
    }


}
